Release 10.1A: OpenEdge Development:
Programming Interfaces
4GL mechanisms
Ultimately, the differences between COM objects and widgets require separate but related mechanisms in the 4GL to work with them. The most fundamental of these mechanisms are the handles you use to access COM objects and widgets. You must access widgets with widget handles and COM objects with component handles. These handles have different data types that represent the different capabilities that they support—the
WIDGET-HANDLEdata type for widget handles and theCOMPONENT-HANDLE(orCOM-HANDLE) data type for COM objects.
COM-HANDLEvalues have a data type that is compatible with most other Progress data types. For component handles, Progress does the data conversion automatically, unlike widget handles which require the use of Progress data conversion functions, likeSTRINGorINTEGER.Table 14–1 compares each type of object (COM object and Progress widget) and summarizes how it is supported in the 4GL.
For more information on Progress widgets and the 4GL mechanisms for managing them, see the information on widgets and handles in OpenEdge Development: Progress 4GL Handbook . The rest of this chapter describes the equivalent mechanisms that support COM objects.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |